<?php

namespace Config;

/**
 * 数据库的一个实例配置，则使用时像下面这样使用
 * $user_array = Db::instance('db1')->select('name,age')->from('users')->where('age>12')->query();print_r()exit
 * 等价于
 * $user_array = Db::instance('db1')->query('SELECT `name`,`age` FROM `users` WHERE `age`>12');
 * @var array
 */
class Db
{
    public static $db = array(
        'host'    => DB_HOST,
        'user'    => DB_USER,
        'password' => DB_PWD,
        'dbname'  => DB_NAME,
        'port'    => DB_PORT,
        'charset'    => 'utf8mb4',
    );

    public static $config = array(
        'globalData'    => INTRANET . ":2207",
    );
}
